package com.supermarket.mapper;

import com.supermarket.entity.Goods;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsMapper {


    void add(Goods goods);

    void deleteById(String id);

    void updateGoods(Goods goods);

    /**
     *
     * @param ids
     */
    void batchDel(Integer[] ids);

    /**
     *
     * @return
     */
    List<Goods> findGoodsAll();

    /**
     *
     * @param cachedDataList
     */

    void save(List<Goods> cachedDataList);

    List<Goods> findByIds(Integer[] ids);
}
